const cloud = require('wx-server-sdk')
const db = cloud.database()

exports.main = async (event, context) => {
  const todos = await db.collection('commentList');
  console.log("getMyComment===openid="+event.openid);
  var we = await todos.where({openid: event.openid});
  return await we.get({
    success: function(res) {
      return res.data;
    },
  })
}